package pais.robot.keyextr;

import pasys.error.PaposException;

/** Keyword Listener
 * 
 * Each time KeywordExtractor extracts a keyword, 
 * KeywordListener.onKeyword method is invoked
 */
public interface KeywordListener {
  /** Invoked each time a keyword is extracted from a document
   * 
   * @param keyword - the keyword extracted from the document
   * @param offset  - the offset of the keyword in the document
   */
  public void onKeyword(String keyword, int offset)  throws PaposException ;
}
